package com.pdh.service;

import com.pdh.dao.TypeMapper;
import com.pdh.entity.BillType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 彭_德华
 * @Date: 2021-08-30 11:09
 * @Description:
 */
@Service
public class TypeService {
    @Autowired
    private TypeMapper typeMapper;

    /**
     * 获取BillType的列表
     * @return
     */
    public List<BillType> list(){
        //直接调用tk.mybatis内置接口，实现查询操作
        return typeMapper.selectAll();
    }
}
